package com.imc.platform.base.user.dao.repository;

import com.imc.platform.base.user.pojo.User;
import com.imc.platform.base.user.pojo.UserAttach;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by tanweiping on 2018/7/20.
 */
@Repository
public interface UserAttachRepository extends JpaRepository<UserAttach, Integer>, JpaSpecificationExecutor<UserAttach> {

    List<UserAttach> findAllByUserId(Integer userId);

}
